home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / Papers / OS Shell in Java / Facade / Finder.java < prev    next >
Encoding:
Java Source  |  1998-06-18  |  735 b   |  32 lines  |  [TEXT/dosa]

  1. //    Finder.java : this is a Java source code file for the program Facade.
  2. //    Copyright 1998, Andrew S. Downs
  3. //    andrew.downs@tulane.edu
  4. //
  5. //    This source code is distributed as freeware.
  6. //    Just keep this author information in the file.  Enjoy!
  7.  
  8. import java.io.*;
  9. import com.sun.java.swing.*;
  10.  
  11. public class Finder implements Serializable {
  12.     Finder() {
  13.         // Mac envy
  14.         try {
  15.             UIManager.setLookAndFeel( "com.sun.java.swing.plaf.mac.MacLookAndFeel");
  16.         }
  17.         catch (Exception exc) {
  18.             // Error - unsupported L&F
  19.             System.err.println( "Unsupported LookAndFeel: MacLookAndFeel" );
  20.         }
  21.  
  22.         // Create primary display
  23.         Desktop d = new Desktop();
  24.         d.repaint();
  25.     }
  26.  
  27.     public static void main( String args[] ) {
  28.         Finder f = new Finder();
  29.     }
  30. }
  31.  
  32.